package com.ybwh.springboot2.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;


/**
 * 联合校验
 */
@Inherited
@Target({TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = {UnionFieldValidator0.class})
@Documented
public @interface UnionValids {

    Class<? extends UnionFieldValidator>[] value();

    String message() default "";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
